package io.renren.modules.weldingmachine.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.renren.modules.weldingmachine.controller.CustomDateDeserializer;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;
@Data
@Accessors(chain = true)
public class WarnInfoResponse {
	private Integer total;
	private List<WarnInfo> rows;
	private Integer code;
	private String msg;

	// getters and setters
	@Data
	@Accessors(chain = true)
	public static class WarnInfo {
		private Long warninfoId;
		private String warnCode;
		private String warnComment;
//		@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
//		@JsonDeserialize(using = CustomDateDeserializer.class)
		private String warnTime;
		private String warnPa;
		private String warnPv;
		private Integer wmId;
		private String wmNo;
		private String wmMaxEwpa;
		private String wmMinEwpa;
		private String wmMaxWpa;
		private String wmMinWpa;
		private String wmMaxEwpv;
		private String wmMinEwpv;
		private String wmMaxWpv;
		private String wmMinWpv;
		private Long technologyId;
		private String technologyName;
		private String technologyCode;
		private String technologyComment;
		private String techStdPa;
		private String techMaxEwpa;
		private String techMinEwpa;
		private String techMaxWpa;
		private String techMinWpa;
		private String techStdPv;
		private String techMaxEwpv;
		private String techMinEwpv;
		private String techMaxWpv;
		private String techMinWpv;
		private String weldMethod;
		private String outMethod;
		private String silkMeltrate;
		private String silkDiameter;
		private String weldGas;
		private String remark;

		// getters and setters
	}
}
